Repository navigation
feat(web): show Potluck site name and bowl logo in search results - #46
Merged
Merged
Conversation
Co-authored-by: Ferrin <[email protected]> Co-authored-by: noorelmosrati <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Musa wants Potluck (potluck.fermulate.com) to show a proper site name and a logo in Google search results instead of just the bare domain and a generic globe icon. The logo must be the little bowl (PotMark) used at the top left of the app, so favicon.svg is now exactly that bowl (same paths as apps/web/src/features/shell/brand.tsx PotMark, light colors with a prefers-color-scheme dark variant inside the SVG), replacing the old bowl-on-dark-tile favicon. Added favicon.ico (16/32/48, since Google wants a favicon that is a multiple of 48px) with a link tag (sizes 32x32 so browsers keep preferring the SVG), and added it to the PWA includeAssets. Added schema.org WebSite JSON-LD to index.html (name Potluck, alternateName Potluck by Fermulate, url from VITE_APP_URL, publisher Fermulate) because that is what Google uses for the site name line. Deliberately unchanged: the <title>, the PWA install icons (pwa-*.png, apple-touch-icon, icon.svg) and the manifest. The PR should request Ferrin-Y and noorelmosrati as reviewers and carry a Credits line naming all three co-founders (Musa directed it); commits already carry Co-authored-by trailers for Ferrin and Noor per Potluck decision D10. No AI attribution anywhere.
What Changed
favicon.svgis now the PotMark bowl from the app header (same paths asbrand.tsx, light colors plus aprefers-color-scheme: darkvariant), replacing the bowl-on-dark-tile icon. A newfavicon.ico(16/32/48) is linked withsizes="32x32"so browsers still prefer the SVG, and it is added to the PWAincludeAssets.index.htmladds schema.orgWebSiteJSON-LD (namePotluck, alternateNamePotluck by Fermulate, url from%VITE_APP_URL%, publisher Fermulate) so Google can show a site name instead of the bare domain.docs/development.mdnotes thatVITE_APP_URLalso feeds the site name JSON-LD. The<title>, manifest and PWA install icons are unchanged.Credits: Musa Kaleem (directed), Ferrin-Y, noorelmosrati.
Risk Assessment
✅ Low: These are static asset and head-markup changes only. The favicon.svg paths and colors match PotMark and the light and dark tokens exactly. The ICO holds valid 16, 32 and 48 px entries. Vite fills in the JSON-LD URL the same way as the existing og:url, and the title, manifest and PWA icons are unchanged, as the intent requires.
Testing
I ran
vite buildwith a production-like VITE_APP_URL, served the output withvite previewon port 4391, and drove it in Playwright Chromium under light and dark color schemes. I parsed the served JSON-LD and decoded the ICO header and the sw.js precache list. To compare icons, I took the PotMark SVG from the live app header with its CSS variables resolved and drew it and favicon.svg at 128 px on a canvas: 0 pixels differed in both schemes. Screenshots of the comparison sheets and of the app header are saved. The preview server was stopped (an orphaned node child was killed and port 4391 is free) and apps/web/dist was removed. Two things are untested: Google search output, and which favicon a real browser tab chooses.Evidence: Browser check: served JSON-LD, icon links, favicon responses, pixel diff results
Evidence: Built dist check: JSON-LD, ICO frames, SW precache
JSON-LD: {"@context":"https://schema.org","@type":"WebSite","name":"Potluck","alternateName":"Potluck by Fermulate","url":"https://potluck.fermulate.com/","publisher":{"@type":"Organization","name":"Fermulate","url":"https://fermulate.com/"}} title: Potluck ico frames: 16x16, 32x32, 48x48 (32bpp) sw precache favicon.ico true, favicon.svg trueEvidence: Served web manifest (unchanged)
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
pnpm install --frozen-lockfileVITE_APP_URL=https://potluck.fermulate.com pnpm exec vite build(apps/web, exit 0)node check-dist.mjs dist: parse JSON-LD from built index.html, decode favicon.ico directory, check sw.js precache entriesvite preview --port 4391plusnode drive.cjs(Playwright Chromium, colorScheme light and dark): DOM JSON-LD, icon link tags, served favicon status and content-type, canvas pixel diff of favicon.svg against the live app PotMark at 128px, screenshotscurl /manifest.webmanifestplus a fetch of every manifest icon, apple-touch-icon and icon.svg (all 200)git diff --quiet 2de3e2c 57d5296 -- apps/web/public/pwa-*.png apple-touch-icon.png icon.svg(byte-identical)git log -1 --format=%an%n%B 57d5296and an attribution grep over the diff✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.